<template>
  <a-result status="error" title="分析出错">
    <template #subtitle>
      遇到一些问题，请返回
    </template>
    <template #extra>
      <a-button type="primary" @click="handleGoBack">返回</a-button>
    </template>
  </a-result>
</template>

<script lang="ts" setup>
import { defineEmits } from 'vue';

const emits = defineEmits(['goBack']);

const handleGoBack = () => {
  emits('goBack');
};
</script>